﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SocketLib.Buffers
{
	public class BufferStatus
	{
		public BufferStatus(int bufferSize)
		{
			BufferSize = bufferSize;
		}
		public int BufferSize { get; private set; }
		public IBuffer Buffer { get; set; }
		public int ReadOffset
		{
			get;
			private set;
		}
		public void IncreaseTransfered(int transfered)
		{
			ReadOffset = (ReadOffset + transfered) % BufferSize;
		}
	}

}
